package com.adcc.loadsheet.billing.service.impl;

import com.adcc.loadsheet.billing.entity.chargerule.BillingLadderEntity;
import com.adcc.loadsheet.billing.service.BillingLadderService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 计费阶梯表Service实现类
 * Created by zhaoml on 2020/4/8.
 */
@Service
public class BillingLadderServiceImpl extends BasisServiceImpl implements BillingLadderService {

    //查询阶梯计数（升序排列）
    @Override
    public List<BillingLadderEntity> findByBillingRuleId(Integer billingRuleId){
        List<BillingLadderEntity> billingLadderEntityList =
                billingLadderEntityMapper.selectByBillingRuleId(billingRuleId);
        return billingLadderEntityList;
    }
}